home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3617 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  937 b 

  1. From: ashishk@msn.com (Ashish Kolli)
  2. Subject: Re: Performance: C vs. C++
  3. Date: 30 Jan 96 05:34:07 -0800
  4. References: <30F6BAAC.12B5@iastate.edu> <4da9pn$a45@news.bridge.net>     <4dnpl2$c8g@classic.iinet.com.au> <3105E9DC.1BE3@enermet.fi>     <DLr46y.7rH@txnews.amd.com> <BLUME.96Jan27152610@zayin.cs.princeton.edu>
  5. Message-ID: <00001a80+00007425@msn.com>
  6. Path: news.msn.com!msn.com
  7. Newsgroups: comp.lang.c
  8. Organization: The Microsoft Network (msn.com)
  9.  
  10. Hi,
  11.     Other than the fact that virtual functions are slow, I have noticed 
  12. that the overall quality of optimized C code is much better than that 
  13. of optimized C++ code. I guess the constructs and type checking and
  14. "virtual function" features added by C++ just force the 
  15. compiler/optimizer to be cautious while optimizing the code or maybe 
  16. the system vendors give more importance to C compiler performance 
  17. (since almost all the benchmarks are in C and Fortran).
  18.  
  19.  
  20. - Ashish
  21. ashishk@cmu.edu
  22.